package com.saturn.action.auth.report;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.saturn.app.web.IAction;
import com.saturn.app.web.IView;
import com.saturn.app.web.view.JspView;
import com.saturn.report.ReportView;

public class DeleteReportViewAction implements IAction {

	@Override
	public IView execute(HttpServletRequest request,
			HttpServletResponse response) {

		String idStr = request.getParameter("ids");
		String[] ids = idStr.split("__");
		
		ReportView.removes(ids);
		return new JspView("/report/reportView/showReportView.jsp");
	}

	@Override
	public String requestMapping() {
		return "/auth/report/deleteReportView.action";
	}

}
